package com.wlps.vo.sendcenter.warehouse;

import com.wlps.entity.CommodityWarehouse;
import com.wlps.entity.ReturnOutOfStock;
import com.wlps.vo.warehousecenter.warehoused.ReturnOutOfStockVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/16
 */
@Service
@Mapper(componentModel = "spring")
public interface CommodityWarehouseMapping {

    /**
     * @param commodityWarehouse
     * @return
     */
    @Mappings({
            @Mapping(source = "productName", target = "commdityName")
    })
    CurrentNumberVo entityToVo(CommodityWarehouse commodityWarehouse);


    /**
     * @param commodityWarehouseList
     * @return
     */
    List<CurrentNumberVo> entitysToVos(List<CommodityWarehouse> commodityWarehouseList);
}
